package be.fgmodelsport.ourbeers.objects;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class Player extends User {
	private List<Beer> beers;
	
	public Player(String id, String userName, int score, int nrOfScores, int nrBeersCreated, Date modified){
		super(id, userName, score, nrOfScores, nrBeersCreated, modified);
		beers = new ArrayList<Beer>();
	}
	
	@Override
	public int getNrOfScores() {
		assert getNrOfScores() == beers.size();
		
		return getNrOfScores();
	}
}
